FROM openjdk:8-jdk-alpine

# VOLUME /tmp
WORKDIR /app
COPY ./yixin-starter/target/yixin-starter-1.0-SNAPSHOT.jar ./
ENTRYPOINT ["java", "-Xmx200m", "-jar", "./yixin-starter-1.0-SNAPSHOT.jar"]

EXPOSE 5000

# FROM eclipse-temurin:17-jdk-jammy

# WORKDIR /app

# COPY .mvn/ .mvn
# COPY mvnw pom.xml ./
# RUN ./mvnw dependency:resolve

# COPY src ./src

# CMD ["./mvnw", "spring-boot:run"]